import request from '@/utils/request.js'

const restockingApi = {
    list(restockingQuery) {
        return request.get('/restocking/list', {params: restockingQuery})
    },
    deleteById(id) {
        return request.delete(`/restocking/deleteById/${id}`)
    },
    deleteAll(ids) {
        return request.delete(`/restocking/deleteAll/${ids}`)
    },
    add(restocking) {
        return request.post(`/restocking/add`, restocking)
    },
    selectById(id) {
        return request.get(`/restocking/selectById/${id}`)
    },
    update(restocking) {
        return request.put(`/restocking/update`, restocking)
    }
}

export default restockingApi